import request from '@/utils/request'

// 查询维修详单列表
export function listMaintenanceDetail(query) {
  return request({
    url: '/car/maintenanceDetail/list',
    method: 'get',
    params: query
  })
}

// 查询维修详单详细
export function getMaintenanceDetail(detailId) {
  return request({
    url: '/car/maintenanceDetail/' + detailId,
    method: 'get'
  })
}

// 新增维修详单
export function addMaintenanceDetail(data) {
  return request({
    url: '/car/maintenanceDetail',
    method: 'post',
    data: data
  })
}

// 修改维修详单
export function updateMaintenanceDetail(data) {
  return request({
    url: '/car/maintenanceDetail',
    method: 'put',
    data: data
  })
}

// 删除维修详单
export function delMaintenanceDetail(detailId) {
  return request({
    url: '/car/maintenanceDetail/' + detailId,
    method: 'delete'
  })
}
